package com.project.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

/**
 * 用户实体类
 *
 * @author lixinyu
 * @date 2023/07/07
 */
@TableName("t_user")
public class UserBean {
    /**
     * id
     */
    @TableId(value = "pk_userId",type = IdType.AUTO)
    private Integer id;

    /**
     * 用户名
     */
    @TableField("u_name")
    private String username;

    /**
     * 密码
     */
    @TableField("u_pwd")
    private String pwd;

    /**
     * 权限
     */
    @TableField("u_grade")
    private String grade;

    public UserBean() {
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPwd() {
        return pwd;
    }

    public void setPwd(String pwd) {
        this.pwd = pwd;
    }

    public String getGrade() {
        return grade;
    }

    public void setGrade(String grade) {
        this.grade = grade;
    }

    @Override
    public String toString() {
        return "UserBean{" +
                "id=" + id +
                ", username='" + username + '\'' +
                ", pwd='" + pwd + '\'' +
                ", grade='" + grade + '\'' +
                "}\n";
    }
}
